<@pagelet title="">
<button id="btn1">测试</button>
<div id="inner-content"></div>

<script>
    var a = 100;
    console.log(scope);
</script>
<script>
    $("#btn1",scope.domPure).click(function(){
        $("#inner-content",scope.domPure).text("test001");
    });
</script>
</@pagelet>